﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OCRTheNewHope
{
    public class Point
    {
        public int X { get; private set; }
        public int Y { get; private set; }

        public Point(int x, int y)
        {
            if (x < 0)
                x = 0;
            if (x > 27)
                x = 27;
            if (y < 0)
                y = 0;
            if (y > 27)
                y = 27;


            this.X = x;
            this.Y = y;
        }

        public override string ToString()
        {
            return "(" + this.X.ToString() + "," + this.Y.ToString() + ")";
        }
    }
}
